package com.larry.spark.rdd.action

import org.apache.spark.rdd.RDD
import org.apache.spark.{SparkConf, SparkContext}

object RDD_Oper_Action {

  def main(args: Array[String]): Unit = {
    //TODO  使用spark 行动算子被调用 会触发spark作业执行

    val conf = new SparkConf().setMaster("local[*]").setAppName("rdd")
    val sc = new SparkContext(conf)

    val rdd: RDD[Int] = sc.makeRDD(List(1,2,3,4,5,6),3)

    sc.stop()
  }
}
